<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" type="text/css" href="/easyui.css">
    <link rel="stylesheet" type="text/css" href="/icon.css">
    <link rel="stylesheet" type="text/css" href="/demo.css">
    <script src="/jquery.min.js"></script>
    <script src="/jquery.easyui.min.js"></script>
</head>
<body>
<table id="tb">
    <tbody>
    <tr>
        <td>001</td><td>名称1</td><td>2323</td>
    </tr>
    <tr>
        <td>002</td><td>名称2</td><td>4612</td>
    </tr>
    </tbody>

</table>
<script type="text/javascript">
    $("#tb").datagrid({
        singleSelect:true,
        columns:[[
            {field:'code',title:'代码',width:"15%"},
            {field:'name',title:'名称',width:"15%"},
            {field:'price',title:'价格',width:"70%",align:'center'}
        ]],
        collapsible:true

    });
</script>
</body>
</html>